![]() |
WOLF core
WOLF: A Modular Estimation Framework for Robotics
|
Buffer of motions (pre-integrated deltas) of a CaptureMotion. More...
#include <core/processor/motion_buffer.h>
Public Member Functions | |
| MotionBuffer () | |
| Default constructor. More... | |
| const Motion & | getMotion (const TimeStamp &_ts) const |
| Returns the motion at _ts, following the rules of the class description. More... | |
| void | getMotion (const TimeStamp &_ts, Motion &_motion) const |
| Gets the motion at _ts, following the rules of the class description. More... | |
| const Motion & | getClosestMotion (const TimeStamp &_ts) const |
| Returns the motion with the closest time stamp to _ts (the previous one in case of draw) More... | |
| void | split (const TimeStamp &_ts, MotionBuffer &_oldest_buffer) |
| Splits the buffer at _ts: the motions up to _ts are moved to _oldest_buffer. More... | |
| void | print (bool show_data=0, bool show_delta=0, bool show_delta_int=0, bool show_jacs=0, bool show_covs=0) |
| Prints the buffer, optionally showing data, deltas, integrated deltas, Jacobians and covariances. More... | |
Buffer of motions (pre-integrated deltas) of a CaptureMotion.
It consists of a buffer of pre-integrated motions (aka. delta-integrals) that is being filled by the motion processors (deriving from ProcessorMotion). Each delta-integral is accompanied by a time stamp, a Jacobian and a covariances matrix.
This buffer contains the time stamp and delta-integrals:
The buffer can be queried for motion-integrals and delta-integrals corresponding to a provided time stamp, with the following rules:
| wolf::MotionBuffer::MotionBuffer | ( | ) |
Default constructor.
Returns the motion with the closest time stamp to _ts (the previous one in case of draw)
Unlike getMotion(), the returned motion can be the one immediately after _ts. The buffer cannot be empty.
Returns the motion at _ts, following the rules of the class description.
Gets the motion at _ts, following the rules of the class description.
| void wolf::MotionBuffer::print | ( | bool | show_data = 0, |
| bool | show_delta = 0, |
||
| bool | show_delta_int = 0, |
||
| bool | show_jacs = 0, |
||
| bool | show_covs = 0 |
||
| ) |
Prints the buffer, optionally showing data, deltas, integrated deltas, Jacobians and covariances.
| void wolf::MotionBuffer::split | ( | const TimeStamp & | _ts, |
| MotionBuffer & | _oldest_buffer | ||
| ) |
Splits the buffer at _ts: the motions up to _ts are moved to _oldest_buffer.